
import 'package:json_annotation/json_annotation.dart';

part 'address.g.dart';

@JsonSerializable(explicitToJson: true)
class Address{
  int address_id;
  String tag; // e.g. home, school
  String address; // e.g. Chengdu, RenMing Rd. North
  String contact; // 联系人
  String phone_number;

  Address(this.address_id,this.tag, this.address, this.contact, this.phone_number);

  factory Address.fromJson(Map<String, dynamic> json) =>
      _$AddressFromJson(json);

  Map<String, dynamic> toJson() => _$AddressToJson(this);
}